package fitnesshub.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 会员
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Member {
    private Integer memberId;
    private String username;
    private String memberName;
    private String password;
    private String gender;
    private Float height;
    private Float weight;
    private Float BMI;
    private String contact;
    private String memberType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime registrationTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastModifiedTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime membershipStartDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime membershipEndDate;

    private Integer age;
    private String avatar;
}
